package org.jeecg.modules.prodentry.service.impl;

import java.util.List;

import org.jeecg.modules.prodentry.entity.ProdEntry;
import org.jeecg.modules.prodentry.mapper.ProdEntryMapper;
import org.jeecg.modules.prodentry.service.IProdEntryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description:  成品仓出入库
 * @Author: jerryzhu
 * @Date:   2021-11-15
 * @Version: V1.0
 */
@Service
public class ProdEntryServiceImpl extends ServiceImpl<ProdEntryMapper, ProdEntry> implements IProdEntryService {
	
	@Autowired
	ProdEntryMapper prodEntryMapper;
	
	/**
	 * 查询金出入库明细分页
	 */
	@Override
	public IPage<ProdEntry> selectProdEntryPage(Page<ProdEntry> page, QueryWrapper<ProdEntry> queryWrapper) {
		return prodEntryMapper.selectProdEntryPage(page, queryWrapper);
	}

	/**
	 * 查询仓库库存数据列表，不分页*
	 */
	@Override
	public List<ProdEntry> getProdEntryStorageSummaryList(String storageId) {
		return prodEntryMapper.getProdEntryStorageSummaryList(storageId);
	}
	
	/**
	 * 查询员工库存数据列表，不分页*
	 */
	@Override
	public List<ProdEntry> getProdEntryPersonSummaryList(String userName) {
		return prodEntryMapper.getProdEntryPersonSummaryList(userName);
	}

	/**获取仓库名字*/
	@Override
	public String getStorageName(String id) {
		return prodEntryMapper.getStorageName(id);
	}
	
}
